package ui;

import java.awt.GridLayout;

import javax.swing.JComponent;
import javax.swing.JPanel;

public class StretchBox extends JPanel {
	private static final long serialVersionUID = 1L;

	public StretchBox(JComponent... c) {
		this.setLayout(new GridLayout(1, c.length));
		this.add(c);
		this.setOpaque(false);
		this.revalidate();
		this.repaint();
	}

	private void add(JComponent[] c) {
		for (int i = 0; i < c.length; i++) {
			this.add(c[i]);
		}
	}

}
